package config

import (
	"github.com/zeromicro/go-zero/core/stores/redis"
	"github.com/zeromicro/go-zero/rest"
)

type Config struct {
	rest.RestConf
	MySqlConfig MySqlConfig     `json:"mySqlConfig"`
	AuthConfig  AuthConfig      `json:"authConfig"`
	RedisConfig redis.RedisConf `json:"redisConfig"`
}

type MySqlConfig struct {
	DataSource      string `json:"dataSource"`
	ConnectTimeOut  int    `json:"connectTimeOut"`
	MaxOpenConnects int    `json:"maxOpenConnects"`
	MaxIdleConnects int    `json:"maxIdleConnects"`
}

type AuthConfig struct {
	AccessSecret string `json:"accessSecret"`
	Expire       int64  `json:"expire"`
}
